package org.az.netty_study.p16_rpc.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.az.netty_study.p14_netty综合案例2_聊天室.message.Message;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RpcResMessage extends Message {
    /**
     * rpc调用的返回值
     */
    private Object returnValue;
    /**
     * rpc调用的异常值
     */
    private String exceptionValue;

    @Override
    public int getMessageType() {
        return RPC_MESSAGE_RESPONSE;
    }
}
